#include "../../include/mysql_tool.h"
string mysql_tool::user_search(string user_name)
{
    string temp="select * from user where user_name=''";
    temp.insert(36,user_name);
    mysql_query(&mysql,temp.c_str());
    MYSQL_RES *result = mysql_store_result(&mysql);
    MYSQL_ROW row = mysql_fetch_row(result);
    row = mysql_fetch_row(result);
    string back=(string(row[0]));
    return back;
}